﻿@model ContentResourceDto
@{
    var x = @Html.EasyUi();
}
@using (x.Layout(true).Begin())
{
    using (x.LayoutRegion().Center().Begin())
    {
        switch (Model.Type)
         {
             case ContentResourceType.Article:
                 @Html.Partial("Parts/Detail/Parts/Article", Model)
                 break;
             case ContentResourceType.Video:
                 @Html.Partial("Parts/Detail/Parts/Video", Model);
                 break;
             case ContentResourceType.Atlas:
                 @Html.Partial("Parts/Detail/Parts/Atlas", Model);
                 break;
             default:
                 break;
         }
    }
    using (x.Panel().Id("panel_comment").Bottom().Split().Title("评论管理").Height(300).AddClass("content").Begin())
    {
        @Html.Action("Grid", "Comment",new { contentResourceId = Model.Id })
    }
}